-
Notifications
You must be signed in to change notification settings - Fork 6
NIAD-3142: Validate XML before sending #1375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
835ecaf to
abea362
Compare
cfa467e to
5b53429
Compare
@chiaramapellimt there seems to be two surviving mutation issues in Pitest |
service/src/main/java/uk/nhs/adaptors/gp2gp/gpc/StructuredRecordMappingService.java
Outdated
Show resolved
Hide resolved
c075ce4 to
82ac348
Compare
8eff8de to
3251689
Compare
00a2469 to
0f40781
Compare
989e047 to
aeeaae5
Compare
a5dcf6b to
518c795
Compare
7bd3cf5 to
ab7bdbb
Compare
|
Looks good. All 4 mutations in this change were killed.
|
|



What
The goal is to validate the XML produced by the adaptor, to return a negative acknowledgement and to log the reason from the XML failure.
Why
At present, if XML is generate for the bundle this is send to the incumbent regardless of whether it is valid XML and leaves the incumbent to reject the message. Instead we should validate the XML in the adaptor and fail the transfer if the XML is not valid.
Type of change
Please delete options that are not relevant.
Checklist: